import request from '@/utils/request'

// 查询产品附加属性列表
export function listProductFmlAttr(query) {
  return request({
    url: '/amz/productFmlAttr/list',
    method: 'get',
    params: query
  })
}

// 查询产品附加属性详细
export function getProductFmlAttr(productCode) {
  return request({
    url: '/amz/productFmlAttr/' + productCode,
    method: 'get'
  })
}

// 新增产品附加属性
export function addProductFmlAttr(data) {
  return request({
    url: '/amz/productFmlAttr',
    method: 'post',
    data: data
  })
}

// 修改产品附加属性
export function updateProductFmlAttr(data) {
  return request({
    url: '/amz/productFmlAttr',
    method: 'put',
    data: data
  })
}

// 删除产品附加属性
export function delProductFmlAttr(productCode) {
  return request({
    url: '/amz/productFmlAttr/' + productCode,
    method: 'delete'
  })
}

// 导出产品附加属性
export function exportProductFmlAttr(query) {
  return request({
    url: '/amz/productFmlAttr/export',
    method: 'get',
    params: query
  })
}
